﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.ViewModels.HelpViewModel>" %>

    <h2>Managing User Accounts</h2>
    <ol>
    <li><a href="#webpolluser">Creating a Web Poll User</a></li>
    <ul>
        <li><a href="#standardwebpolluser">Creating a standard Web Poll User</a></li>
        <li><a href="#genericwebpolluser">Creating a generic Web Poll User</a></li>
    </ul>
    
    <% if (Page.User.IsInRole("Poll Creator") || Page.User.IsInRole("Poll Administrator"))
     { 
    %>
  
    <li><a href="#pollmaster">Creating a Poll Master</a></li>
    
    <%
     }
    %>
    
    <li><a href="#managingwebpollusers"> Managing Existing Accounts</a></li>
    <ul>
        <li><a href="#viewexisting">Viewing existing accounts</a></li>
        <li><a href="#deleteexisting">Deleting existing accounts</a></li>
    </ul>
    
    </ol>

    <p id="webpolluser"><u>Creating a Web Poll User</u>
    
        <p id="standardwebpolluser">To create a standard Web Poll User
        <ol>
            <li>Click on the <strong>Manage Accounts</strong> tab in the top right-hand corner of the screen</li>
            <li>Select <strong>Poll User</strong> from the horizontal navigation</li>
            <li>Enter the poll user's username and email address in the fields provided</li>
            <li>Select <strong>Save</strong> to create the new web poll user account</li>
        </ol>
        </p>
        </p>
        
        <p id="genericwebpolluser">To create a generic Web Poll User
        <ol>
            <li>Click on the <strong>Manage Accounts</strong> tab in the top right-hand corner of the screen</li>
            <li>Select <strong>Poll User</strong> from the horizontal navigation</li>
            <li>Enter the poll user's username and email address in the fields provided</li>
            <li>Tick the <em>Generic</em> checkbox to make the poll user generic</li>
            <li>Enter email addresses either </li>
            <ul>
                <li>Manually, using the <strong>Add Email</strong> and <strong>Remove</strong> buttons as needed</li>
                <li> Using the Bulk Insertion Tool, by typing a list of comma-separated email addresses and clicking <strong>Add</strong></li>
                <li>Using the Bulk Insertion Tool, by uploading a .txt file containing a list of comma-separated email addresses</li>
            <p><img src="../../Resources/Help/PollMaster-BulkInsert.png" width="530" height="310"/></p>
            </ul>
            <li>Select <strong>Save</strong> to create the new web poll user account</li>
        </ol>
        </p>
    </p>  

 <% if (Page.User.IsInRole("Poll Creator") || Page.User.IsInRole("Poll Administrator"))
    { 
 %>
    
    <p id="pollmaster"><u>Creating a Poll Master</u>
    
      <p>To create a Poll Master
        <ol>
            <li>Click on the <strong>Manage Accounts</strong> tab in the top right-hand corner of the screen</li>
            <li>Select <strong>Poll Master</strong> from the horizontal navigation</li>
            <li>Enter the poll master's username, email address, and any optional additional details in the fields provided</li>
            <li>Select <strong>Save</strong> to create the new web poll master account</li>
        </ol>
        </p>
    </p>

 <% 
    } 
 %>
    
    <p id="managingwebpollusers"><u>Managing Existing Accounts</u>
    
        <p id="viewexisting">To view existing accounts
        <ol>
            <li>Click on the <strong>Manage Accounts</strong> tab in the top right-hand corner of the screen</li>
            <li>dbPoll will display a table of accounts in the system</li>
            <li>The list can be filtered using the text fields at the top of the page. Options include filtering results by Demographic, Organisation, Location, or Role. Results can also be ordered in ascending or descending order by Username, First Name, Last Name, Creation Date, or Last Login Date</li>
        </ol>
        </p>
    
        <p id="deleteexisting">To delete existing accounts
        <ol>
            <li>Click on the <strong>Manage Accounts</strong> tab in the top right-hand corner of the screen</li>
            <li>Locate the account in the generated table and click <strong>Delete</strong></li>
        </ol>
        </p>
    </p>


